from Netease_song_info import *
from Netease_playlist_allSong import *

if __name__ == '__main__':
    # 这里修改歌单id
    playlist_id = 9127278592
    allSong = playlist_get_allSong()
    
    
    print("获取歌单信息")
    playlist_info = allSong.get_allID(playlist_id)
    print("获取歌曲信息")
    song_info = allSong.get_song_info(playlist_info['c'])
    # print(song_info)
    songs = song()
    
    for count in range(len(song_info)):
        info = song_info[count]
        artist_list = [i['name'] for i in info['ar']]
        song_id = info['id']
        print(song_id)
        
        try:
            songs.run(song_id)
        except:
            print(f"{song_id}bug了")
